package com.ftg.learn.chapter14.isa.myabstra;

/**
 * @author KangJx
 * @date 2021/7/23
 */
public class Test {
    Person person = new Person("Test");
    static{
        System.out.println("1test static");
    }

    public Test() {
        System.out.println("2test constructor");
    }

    public static void main(String[] args) {
        new MyClass();
    }
}

class Person{
    static{
        System.out.println("3person static");
    }
    public Person(String str) {
        System.out.println("4person "+str);
    }
}


class MyClass extends Test {
    Person person = new Person("MyClass");
    static{
        System.out.println("5myclass static");
    }

    public MyClass() {
        System.out.println("6myclass constructor");
    }
}